package com.mmt.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import com.mmt.mapper.ConversationMapper;
import com.mmt.mapper.UserMapper;
import com.mmt.po.User;
import com.mmt.service.UserService;

@Service
public class UserServiceImpl implements UserService{

	@Autowired
	private UserMapper userMapper;
	
	@Override
	public User getUserByIdByPass(Integer userId,String password){
		return userMapper.getUserByIdByPass(userId,password);
	}
	@Override
	public User listUserInfoByUserId(Integer userId) {
		return userMapper.listUserInfoByUserId(userId); 
	}
	@Override
	public int saveUser(User user) {
		return userMapper.saveUser(user);
	}
	@Override
	public int updateUser(User user) {
		return userMapper.updateUser(user);
	}
}
